/*
* 命名空间: Authority.Model
*
* 功 能： SysOperationLog实体类
*
* 类 名： SysOperationLogEntity
*
* Version   变更日期            负责人     变更内容
* ─────────────────────────────────────────────────
* V1.0.1    2019/09/27 14:26:13 罗维     创建
*
* Copyright (c) 2019 Lir Corporation. All rights reserved.
*/

namespace Authority.Model
{
    using System;
    using Tool.Model;

    /// <summary>
    /// 后端操作日志
    /// </summary>
    [Serializable]
    [DBTableInfo(TableName = "SysOperationLog")]
    public class SysOperationLogEntity
    {

        /// <summary>
        /// 唯一标识符
        /// </summary>
        [DBFieldInfo(ByteLength = 32,DataLength = 32,DecimalDigits = 0,ColumnName = "gCode",Required = true,DefaultValue = "",IsPrimarykey = true)]
        public string gCode
        {
            get; set;
        }

        /// <summary>
        /// 功能类型
        /// </summary>
        [DBFieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iFunType",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public int iFunType
        {
            get; set;
        }

        /// <summary>
        /// 操作类型
        /// </summary>
        [DBFieldInfo(ByteLength = 4,DataLength = 10,DecimalDigits = 0,ColumnName = "iOptType",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public int iOptType
        {
            get; set;
        }

        /// <summary>
        /// 操作用户
        /// </summary>
        [DBFieldInfo(ByteLength = 100,DataLength = 50,DecimalDigits = 0,ColumnName = "sUser",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sUser
        {
            get; set;
        }

        /// <summary>
        /// 操作IP
        /// </summary>
        [DBFieldInfo(ByteLength = 100,DataLength = 50,DecimalDigits = 0,ColumnName = "sIP",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sIP
        {
            get; set;
        }

        /// <summary>
        /// 操作详情
        /// </summary>
        [DBFieldInfo(ByteLength = 400,DataLength = 200,DecimalDigits = 0,ColumnName = "sDetail",Required = true,DefaultValue = "",IsPrimarykey = false)]
        public string sDetail
        {
            get; set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DBFieldInfo(ByteLength = 8,DataLength = 23,DecimalDigits = 3,ColumnName = "dCreateTime",Required = false,DefaultValue = "(getdate())",IsPrimarykey = false)]
        public DateTime? dCreateTime
        {
            get; set;
        }
    }
}
